//
//  TLUserManger.h
//  FunnyVideo
//
//  Created by 李鑫 on 15/8/24.
//  Copyright © 2015年 NewEggTech. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AVOSCloud/AVOSCloud.h>
#import "AVOSUserManger.h"


@interface TLUserManger : NSObject


@property (nonatomic,readonly) AVOSUserManger *avUM;

+ (TLUserManger *)sharedManger;

- (UIImage *)getUserHead;

- (void)setAVUser:(AVUser *)user;
/**
 *  Get User Infos From the AVOS Server
 *
 *  email ,session token , username , mobile phone, user Face ,is mobile phone verfied
 *  @return A Dictionary contains the values top
 */
- (NSDictionary *)getUserInfos;

- (BOOL)hasUser;

- (void)logout;

- (void)loginWithSession:(NSString *)sessionToken loginCompletion:(void(^)(BOOL loginSucc))completion;
@end
